#app {

  // 主体区域 Main container
  .main-container {
    min-height: 100%;
    transition: margin-left .28s;
    margin-left: $sideBarWidth;
    position: relative;
  }

  // 侧边栏 Sidebar container
  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2001;
    overflow: hidden;
    background-color: $subMenuBg;

    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
      .el-scrollbar__view{
        padding-bottom: 60px;
      }
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 127px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 13px;
      vertical-align: -0.33em;
      font-size: 23px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      height: 50px;
      line-height: 50px;
      padding-left: 15px !important;
      font-size: 14px;
      background-color: #36404E;
      color: #89909E;
      &:hover {
        background-color: $menuHover !important;
      }
      .el-submenu__icon-arrow{
        margin-top: -4px;
      }
    }
    & .icon-menu .el-submenu>.el-submenu__title,
    & .el-menu-item {
      .svg-icon{
        color: $iconColor !important;
      }
      background-color: $subMenuBg !important;
      padding-left: 15px !important;
      &:hover {
        background-color: $subMenuHover !important;
      }
      &.is-active {
        background-color: $subMenuActiveBg !important;
        color: #fff;
        .svg-icon{
        color: #fff !important;
        }
      }
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      color: $menuText;
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;
      background-color: #252d38 !important;
      padding-left: 30px !important;

      &:hover {
        background-color: $subMenuHover !important;
      }
      &.is-active {
        background-color: $subMenuActiveBg !important;
        color: #fff;
      }
    }
    & .el-submenu .level-1 .el-menu-item {
      padding-left: 45px !important;
      font-size: 13px;
    }
    .copyright {
      position: fixed;
      bottom: 0;
      width: 190px;
      height: 33px;
      padding: 10px 0;
      font-size: 12px;
      text-align: center;
      color: #89909E;
      background-color: #3c4757;
      transition: all .3s;
    }
    .footerHide {
      width: 0;
      opacity: 0;
    }

    .footerShow {
      width: 190px;
      opacity: 1;
    }
  }
  .openSidebar .right-menu{
    .svg-icon {
      margin-right: 0px;
    }
  }
  //.hideSidebar {
  //  .sidebar-container {
  //    width: 54px !important;
  //  }
  //
  //  .main-container {
  //    margin-left: 54px;
  //  }
  //
  //  .svg-icon {
  //    margin-right: 0px;
  //  }
  //
  //  .submenu-title-noDropdown {
  //    padding: 0 !important;
  //    position: relative;
  //
  //    .el-tooltip {
  //      padding: 0 !important;
  //
  //      .svg-icon {
  //        margin-left: 15px;
  //      }
  //    }
  //  }
  //
  //  .el-submenu {
  //    overflow: hidden;
  //
  //    &>.el-submenu__title {
  //      padding: 0 !important;
  //
  //      .svg-icon {
  //        margin-left: 15px;
  //      }
  //
  //      .el-submenu__icon-arrow {
  //        display: none;
  //      }
  //    }
  //  }
  //
  //  .el-menu--collapse {
  //    .el-submenu {
  //      &>.el-submenu__title {
  //        &>span {
  //          height: 0;
  //          width: 0;
  //          overflow: hidden;
  //          visibility: hidden;
  //          display: inline-block;
  //        }
  //      }
  //    }
  //  }
  //}

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // 适配移动端, Mobile responsive
  .mobile {
    .main-container {
      //margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    //&.hideSidebar {
    //  .sidebar-container {
    //    pointer-events: none;
    //    transition-duration: 0.3s;
    //    transform: translate3d(-$sideBarWidth, 0, 0);
    //  }
    //}
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }

  .sidebar-project-box{
    .el-select{
      width: 160px;
      margin: 0 auto 20px;
      display: block;
      height: 40px;
      .el-input__inner{
        background: #2b3544;
        color: #fff;
        border: 1px solid #4f5969;
      }
      .el-icon-arrow-up:before{
        content: "\e78f";
        color: #999;
      }
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    height: 50px;
    line-height: 45px;
    color: #fff;
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;
    background-color: #3C4757;
    min-width: 150px;
    .el-menu-item{
      height: 40px;
      line-height: 40px;
      color: #fff;
      &.is-active{
        color: #1890ff;
      }
    }
    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
